package com.kaochong.xcx.enums;

import lombok.Getter;

/**
 * @author han
 * @date 2018-05-01 15:43
 */
@Getter
public enum ResultEnum {
	
	SUCCESS(1, "SUCCESS"),
	
	SERVER_ERROR(500, "服务器异常"),
	
	PARAM_ERROR(2, "参数错误"),
	
	PARAM_TOKEN_REQUIRED_ERROR(3, "缺少token参数"),
	
	TOKEN_IS_INVALID_ERROR(4, "token已失效"),
	
	WEIXIN_JS_CODE_OAUTH_ERROR(5, "微信JS_CODE换取用户信息错误"),
	
	TARGET_CHOOSE_ERROR(6, "单词书选择有误"),
	
	TARGET_UN_CHOOSE_ERROR(7, "请选择单词书"),
	
	ANSWER_REQUEST_ERROR(8, "答题请求错误"),
	
	AUTHENTICATION_FAIL_ERROR(9, "authentication fail"),
	
	COMPLETE_ALL_PROGRESS(10, "已完成所有任务"),
	
	HELP_FRIEND_EVERYDAY_ERROR(11, "抱歉，您今日不能帮助解锁任务啦~"),
	
	HELP_FRIEND_OWN_ERROR(12, "抱歉，您不能帮助自己解锁任务~"),
	
	HELP_FRIEND_OPENID_ERROR(13, "用户无效"),
	
	HELP_FRIEND_SUCCESS_ERROR(14, "抱歉，您的好友已完成当日解锁任务！"),
	;
	
	private Integer code;
	
	private String message;
	
	ResultEnum(Integer code, String message) {
		this.code = code;
		this.message = message;
	}
}
